package com.iflytek.esb.dao;

import java.util.List;

import com.iflytek.esb.domain.Id;
import com.iflytek.esb.domain.PersistenceMessage;

public interface MessageDao {

	PersistenceMessage getMessageById(long id);
	
	List<PersistenceMessage> getMessageByEntry(long entryId);
	
	void newMessageId(Id id);
	
	void insertMessage(PersistenceMessage message);
	
	void updateMessage(PersistenceMessage message);
	
	void deleteMessage(long id);
}
